<%@ page language="java" import="java.util.*,com.hs.core.cache.*" pageEncoding="utf-8"%>
<%
   List typelist = (List)request.getAttribute("typelist");
   List catalist = (List)request.getAttribute("catalist");
   String allsql = (String)request.getAttribute("allsql"); 
	//专业内容查询
   String searchtype = (String)request.getAttribute("searchtype");
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<%@ include file="../../include.jsp"%> 
<script language="javascript" type="text/javascript" src="<%=path %>/thirtpart/My97DatePicker/WdatePicker.js"></script>
<script language=JavaScript>
 //题录信息
 function magaInfo(id)
{
	var pageURL = "<%=basePath %>data/magainfo.do?id=" + id;
	openwindow(pageURL,'800','600',''); 
}
//详细数据信息
 function auditInfo(id){
	var pageURL = "<%=basePath %>audit/auditlistFrame.do?id=" + id;
	openwindow(pageURL,'1000','800',''); 
    //window.location.href=pageURL;
 }
 
 function searchViewGeneral(){
     var s1 = document.getElementById("magasearch");
     var s2 = document.getElementById("specialsearch"); 
     if(s1.style != null){
     	s1.style.display="";
     }
     if(s2.style != null){
     	s2.style.display="none";
     }
     searchform.searchtype.value = "1"; 
     searchform.action = "<%=basePath%>search/sindex.do?1=1"; 
 }
 function searchViewSpecial(){
     var s1 = document.getElementById("magasearch");
     var s2 = document.getElementById("specialsearch"); 
     if(s1.style != null){
     	s1.style.display="none";
     }
     if(s2.style != null){
     	s2.style.display="";
     }
     searchform.searchtype.value = "2"; 
     searchform.action = "<%=basePath%>search/doSearch.do?1=1"; 
 }

 function resetAll(){
 	var   obj   =   document.all.tags("input"); 
	for(i=0;i <obj.length;i++){ 
	    if(obj[i].type== "text"){ 
	            obj[i].value   =   ""; 
	    } 
	}
 
}
function ge(a){return document.getElementById(a)}
 function AddRowEx(divid,divindex,divcount){
 	try{
		if(ge(divindex).value==ge(divcount).value){
			return
		}
		var curID=parseInt($("#"+divindex).val());
		var copyID=curID+1;
		var curTrID=divid+"_"+curID.toString();
		var copyTrID=divid+"_"+copyID.toString();
		//alert(curTrID + "," + copyTrID);
		var copyHtml="";
		if($("#"+copyTrID).html()!=null){
			$("#"+copyTrID).show()
		}else{
			var cloneObj=$("#"+curTrID).clone();
			if(curID==1){
				if(cloneObj.find("td:first")!=null){
					cloneObj.find("td:first").remove()
				}
				if(cloneObj.find("span:first")!=null){
					cloneObj.find("span:first").remove()
				}
				var logicalTd=$("#hidden_logical_"+divid).html();
				if(logicalTd!=""){
					var reg=/{key}/g;
					logicalTd=logicalTd.replace(reg,copyTrID);
					cloneObj=cloneObj.prepend(logicalTd)
				}
			}
			copyHtml=$("<div></div>").append(cloneObj).html();
			var reg1=eval("/"+curTrID+"/g");
			copyHtml=copyHtml.replace(reg1,divid+"_"+copyID.toString());
			//alert(copyHtml);
			if(copyHtml!=""){
				$("#"+curTrID).after(copyHtml)
			}
		}
		var objvalue=ge(copyTrID+"_value1");
		if(objvalue!=null){
			objvalue.value=""
		}
		objvalue=ge(copyTrID+"_value2");
		if(objvalue!=null){
			objvalue.value=""
		}
		ge(divindex).value=copyID.toString();
		var obj=ge(copyTrID+"_sel");
		if(!obj){
			obj=ge(copyTrID+"_sel1")
		}
		if(obj){
			obj.options[copyID-1].selected=true;
			obj.onchange()
		}
	}catch(e){
	}
 }
 function DeleteRow(h,c,b){
	try{
		if(ge(c).value=="1"){
			return
		}else{
			var g=parseInt(ge(c).value);
			var f=h+"_"+g;var a=ge(f+"_value1");
			if(a!=null){
				a.value=""
			}
			a=ge(f+"_value2");
			if(a!=null){
				a.value=""
			}
			ge(f).style.display="none";
			g--;
			ge(c).value=g
		}
	}catch(d){
	return
	}
}
//高级检索
function specialSearch(condition){
	//题录信息
	var divid = "spec_";
	var onestr = "";
	if(onestr != ""){
		onestr = "";
	}
	for(var i=1; i<=14; i++){
		var divcur = divid + i + "_value";
		var curobj = document.getElementById(divcur);
		var curvalueStr = divid+i+"_value";
		var curlogicStr = divid+i+"_logical";
		var curselStr = divid+i+"_sel";
		var curspecialStr = divid+i+"_special";
		
		if(curobj != undefined ){
			if(curobj.value != "")
			{
				var curvalue = curobj.value;
				if(i !=1){
					var curlogic = document.getElementById(curlogicStr).value;
				}else{
					var curlogic = 0 ;
				}
				var cursel = document.getElementById(curselStr).value;
				var curspecial = document.getElementById(curspecialStr).value;
				if(onestr.indexOf("&")!=-1){
					onestr = onestr + "&";
				}
				onestr = onestr + curvalueStr+"="+curvalue+"&"+curlogicStr+"="+curlogic+"&"+curselStr+"="+cursel+"&"+curspecialStr+"="+curspecial;
			}
		}
		
	}
	//专业内容
	var proid = "pro_";
	for(var j=1; j<=14; j++){
		var divcur = proid + j + "_value";
		var curobj = document.getElementById(divcur);
		var curvalueStr = proid+j+"_value";
		var curlogicStr = proid+j+"_logical";
		var curselStr = proid+j+"_sel";
		var curspecialStr = proid+j+"_special";
		var cursynStr = proid+j+"_syn";
		if(curobj != undefined ){
			if(curobj.value != "")
			{
				var curvalue = curobj.value;
				if(j !=1){
					var curlogic = document.getElementById(curlogicStr).value;
				}else{
					var curlogic = 0 ;
				}
				var cursel = document.getElementById(curselStr).value;
				var curspecial = document.getElementById(curspecialStr).value;
				var cursyn = document.getElementById(cursynStr).value;
				if(onestr.indexOf("&")!=-1){
					onestr = onestr + "&";
				}
				onestr = onestr + curvalueStr+"="+curvalue+"&"+curlogicStr+"="+curlogic+"&"+curselStr+"="+cursel+"&"+curspecialStr+"="+curspecial+"&"+cursynStr+"="+cursyn;
			}
		}
		
	}
	//年份
	var startyear_s = document.getElementById("startyear_s").value;
	if(startyear_s !=""){
		if(onestr.indexOf("&")!=-1 || onestr!=""){
			onestr = onestr + "&";
		}
		onestr = onestr + "startyear_s=" + startyear_s;
	}
	var endyear_s = document.getElementById("endyear_s").value;
	if(endyear_s !=""){
		if(onestr.indexOf("&")!=-1 || onestr!=""){
			onestr = onestr + "&";
		}
		onestr = onestr + "endyear_s=" + endyear_s;
	}
	//治疗方法
	onestr = onestr + zhiliaoff(onestr,"istangyao");
	onestr = onestr + zhiliaoff(onestr,"iszhongy");
	onestr = onestr + zhiliaoff(onestr,"iswest");
	onestr = onestr + zhiliaoff(onestr,"iszhenjiu");
	onestr = onestr + zhiliaoff(onestr,"istuina");
	onestr = onestr + zhiliaoff(onestr,"isshoushu");
	var srcStr = "" ;
	if(onestr != ""){
		srcStr = "?" + onestr;
		if(condition != ""){
			srcStr = srcStr + "&" + condition;
		}
	}else{
		if(condition != ""){
			srcStr = "?" + condition;
		}
	}
	document.all.conditionurl.value = "<%=basePath %>search/sindex3.do"+srcStr;
	document.getElementById("bookframe").src="<%=basePath %>search/doSearch.do"+srcStr;
}
//简单检索
function generalSearch(condition){
	//题录信息
	var divid = "txt_";
	var onestr = "";
	for(var i=1; i<=14; i++){
		var divcur = divid + i + "_value";
		var curobj = document.getElementById(divcur);
		var curvalueStr = divid+i+"_value";
		var curlogicStr = divid+i+"_logical";
		var curselStr = divid+i+"_sel";
		var curspecialStr = divid+i+"_special";
		
		if(curobj != undefined ){
			if(curobj.value != "")
			{
				var curvalue = curobj.value;
				if(i !=1){
					var curlogic = document.getElementById(curlogicStr).value;
				}else{
					var curlogic = 0 ;
				}
				var cursel = document.getElementById(curselStr).value;
				var curspecial = document.getElementById(curspecialStr).value;
				if(onestr.indexOf("&")!=-1){
					onestr = onestr + "&";
				}
				onestr = onestr + curvalueStr+"="+curvalue+"&"+curlogicStr+"="+curlogic+"&"+curselStr+"="+cursel+"&"+curspecialStr+"="+curspecial;
			}
		}
		
	}
	//来源期刊
	var g_sourcemag = document.getElementById("g_sourcemag").value;
	if(g_sourcemag !=""){
		if(onestr.indexOf("&")!=-1){
			onestr = onestr + "&";
		}
		onestr = onestr + "g_sourcemag=" + g_sourcemag;
	}
	//年份
	var startyear_g = document.getElementById("startyear_g").value;
	if(startyear_g !=""){
		if(onestr.indexOf("&")!=-1 || onestr!=""){
			onestr = onestr + "&";
		}
		onestr = onestr + "startyear_g=" + startyear_g;
	}
	var endyear_g = document.getElementById("endyear_g").value;
	if(endyear_g !=""){
		if(onestr.indexOf("&")!=-1 || onestr!=""){
			onestr = onestr + "&";
		}
		onestr = onestr + "endyear_g=" + endyear_g;
	}
	//语种
	var g_language = document.getElementById("g_language").value;
	if(g_language !=""){
		if(onestr.indexOf("&")!=-1 || onestr!=""){
			onestr = onestr + "&";
		}
		onestr = onestr + "g_language=" + g_language;
	}
	
	var srcStr = "" ;
	if(onestr != ""){
		srcStr = "?secondType=1&" + onestr;
		if(condition != ""){
			srcStr = srcStr + "&" + condition;
		}
	}else{
		if(condition != ""){
			srcStr = "?secondType=1&" + condition;
		}
	}
	document.all.conditionurl.value = "<%=basePath %>search/sindex3.do"+srcStr;
	document.getElementById("bookframe").src="<%=basePath %>search/sindex3.do"+srcStr;
}
//二次检索
function secondSearch(condition){
	var win = document.getElementById('bookframe').contentWindow;
	var onesql = win.document.all.onesql.value;
	//题录信息
	var divid = "txt_";
	var onestr = "";
	for(var i=1; i<=14; i++){
		var divcur = divid + i + "_value";
		var curobj = document.getElementById(divcur);
		var curvalueStr = divid+i+"_value";
		var curlogicStr = divid+i+"_logical";
		var curselStr = divid+i+"_sel";
		var curspecialStr = divid+i+"_special";
		
		if(curobj != undefined ){
			if(curobj.value != "")
			{
				var curvalue = curobj.value;
				if(i !=1){
					var curlogic = document.getElementById(curlogicStr).value;
				}else{
					var curlogic = 0 ;
				}
				var cursel = document.getElementById(curselStr).value;
				var curspecial = document.getElementById(curspecialStr).value;
				if(onestr.indexOf("&")!=-1){
					onestr = onestr + "&";
				}
				onestr = onestr + curvalueStr+"="+curvalue+"&"+curlogicStr+"="+curlogic+"&"+curselStr+"="+cursel+"&"+curspecialStr+"="+curspecial;
			}
		}
		
	}
	//来源期刊
	var g_sourcemag = document.getElementById("g_sourcemag").value;
	if(g_sourcemag !=""){
		if(onestr.indexOf("&")!=-1){
			onestr = onestr + "&";
		}
		onestr = onestr + "g_sourcemag=" + g_sourcemag;
	}
	//年份
	var startyear_g = document.getElementById("startyear_g").value;
	if(startyear_g !=""){
		if(onestr.indexOf("&")!=-1 || onestr!=""){
			onestr = onestr + "&";
		}
		onestr = onestr + "startyear_g=" + startyear_g;
	}
	var endyear_g = document.getElementById("endyear_g").value;
	if(endyear_g !=""){
		if(onestr.indexOf("&")!=-1 || onestr!=""){
			onestr = onestr + "&";
		}
		onestr = onestr + "endyear_g=" + endyear_g;
	}
	//语种
	var g_language = document.getElementById("g_language").value;
	if(g_language !=""){
		if(onestr.indexOf("&")!=-1 || onestr!=""){
			onestr = onestr + "&";
		}
		onestr = onestr + "g_language=" + g_language;
	}
	
	var srcStr = "" ;
	if(onestr != ""){
		srcStr = "?secondType=2&" + onestr;
		if(condition != ""){
			srcStr = srcStr + "&" + condition;
		}
	}else{
		if(condition != ""){
			srcStr = "?secondType=2&" + condition;
		}
	}
	if(onesql !=null && onesql!=""){
		srcStr = srcStr + "&onesql=" + encodeURIComponent(onesql);
	}
	document.all.conditionurl.value = "<%=basePath %>search/sindex3.do"+srcStr;
	document.getElementById("bookframe").src="<%=basePath %>search/sindex3.do"+srcStr;
}
//文献分类
function firstClass(type){
	 var s1 = document.getElementById("magasearch");
     var s2 = document.getElementById("specialsearch"); 
     var condition = "DOCCATAGORY="+type;
     if(s1.style.display == ""){
     	generalSearch(condition);
     }
     if(s2.style.display == ""){
     	specialSearch(condition);
     }
	
}
//文献类型
function diseaseClass(type){
	 var s1 = document.getElementById("magasearch");
     var s2 = document.getElementById("specialsearch"); 
     var condition = "DOCUMENTTYPE="+type;
     if(s1.style.display == ""){
     	generalSearch(condition);
     }
     if(s2.style.display == ""){
     	specialSearch(condition);
     }
	
}

function zhiliaoff(ostr,zhiliaoff){
	var result = "";
	var obj  = document.getElementById(zhiliaoff);
	if(obj.checked){
		var tempvalue = obj.value;
		if(ostr.indexOf("&")!=-1 || ostr!=""){
			result = result + "&";
		}
		result = result + zhiliaoff + "=" + tempvalue;
	}
	return result;
}
</script>
</head>
<body>
<div class="cont">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		 <tr>
		     <td style="width:185px" valign="top">
		     	 <dl class="deta_sear_menu">
			        <dt style="cursor:hand">文献分类</dt>
			        <dd>
			            <%if(null != catalist && catalist.size()>0){
			                 for(int j =0;j<catalist.size();j++){
			                 	Map catamap = (Map)catalist.get(j);
			                 	String catastr =   catamap.get("DOCCATAGORY") +"";
			                 	String catacount = catamap.get("countall") + "";
			                 	String temp1 = DictCacheUtil.getInst().selectStr4Display(catastr,"21");
			                %>  
			              <a title="<%=temp1%>" style="cursor:hand" onClick="firstClass('<%= catastr%>');"><span><font color=red><%=catacount %></font>篇</span><%=StringUtilTool.subTitle(temp1,8) %></a>
			            
			            <% }} %> 
			        </dd>
					<dt style="cursor:hand">文献类型</dt>
					 <dd>
					    <%if(null != typelist && typelist.size()>0){
			                 for(int i =0;i<typelist.size();i++){
			                 	Map typemap = (Map)typelist.get(i);
			                 	String typestr = (String)typemap.get("DOCUMENTTYPE");
			                 	String typecount = typemap.get("countall") + "";
			                 	String temp = DictCacheUtil.getInst().selectStr4Display(typestr,"20");
			               %>  
			              <a  title="<%=temp %>" style="cursor:hand" onClick="diseaseClass('<%= typestr%>');"><span><font color=red><%=typecount %></font>篇</span><%=StringUtilTool.subTitle(temp,8)%></a>
			            
			            <% }} %> 
			        </dd>	
			   </dl>
		     </td>
		     <td valign="top">
		     	<div class="deta_sear_list">
   	   <div class="sear"> 
   	   <!-- <ul><%=allsql %></ul>-->

   	   <ul>
   	    	<li <%if("1".equals(searchtype)){ out.println("class=\"curr\"");}else{out.println("none");} %>><a href="javascript:searchViewGeneral();">简单检索</a></li>
   	    	<li <%if("2".equals(searchtype)){ out.println("class=\"curr\"");} %>><a href="javascript:searchViewSpecial();">高级检索</a></li>
   	   </ul> 
  <form name="searchform" method="post" action="<%=basePath %>search/<%if("1".equals(searchtype)){ out.print("sindex.do"); }if("2".equals(searchtype)){ out.print("doSearch.do"); }%>?1=1" method=post>
    <div id="magasearch" style="display:<%if("1".equals(searchtype)){ out.println("");}else{out.println("none");} %>">
  	     <table id="txt" width="100%" border="0" cellspacing="0" cellpadding="0" class="deta_list_sear">
  	    	 <input type="hidden"   name="conditionurl" value="<%=basePath %>search/sindex3.do"/>
 	     	 <input type="hidden"   name="searchtype" value="<%=searchtype %>"/>
 	         <tr id="">
	     <td colspan=4>
	     	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="deta_list_sear">
	     		<tr>
	     			<td width="10%">来源期刊:</td>
	     			<td width="20%">
				      	<select id="g_sourcemag" name="g_sourcemag" style="width:98%">
						     <option value=0 selected>全部</option>
						     <option value=1>SCI期刊</option>
						     <option value=2>中文核心期刊</option>
					     </select>
					</td>
	     			  <td width="10%">出版日期:</td>
				      <td width="10%"><input type="text" class="Wdate" id="startyear_g" value="" style="width:90%;vertical-align:middle" name="startyear_g"  onFocus="WdatePicker({el:'startyear_g',dateFmt:'yyyy'})"  /></td>
				      <td width="5%">至</td> 
				      <td width="10%"><input type="text" class="Wdate" id="endyear_g" value="" style="width:90%;vertical-align:middle" name="endyear_g"  onFocus="WdatePicker({el:'endyear_g',dateFmt:'yyyy'})"  /></td>
 				      <td width="10%">语种:</td>
				      <td width="20%">
				      	<select id="g_language" name="g_language" style="width:98%">
						     <option value=0 selected>全部</option>
						     <option value=1>中文</option>
						     <option value=2>英文</option>
					     </select>
					  </td>
	     		</tr>
	     		
	     	</table>
	     </td>
	      
	     </tr>
 	    	<input id="txt_i" value="1" type="hidden" name="txt_i"></input>
            <input id="txt_c" value="8" type="hidden" name="txt_c"></input>
            <tr id="hidden_logical_txt" style="display:none">
                <td nowrap="true" style="width:10%;" align="right" >
                    <select id="{key}_logical" name="{key}_logical">
                        <option value="0" selected="">并且</option>
                        <option value="1">或者</option>
                    </select> 
                </td>
         </tr>
	     <tr id="txt_1">
	     <td nowrap width="15%">
	    			<input onclick="AddRowEx('txt','txt_i','txt_c');" type="button" value="+" class="but_2"/>
	    			<input onclick="DeleteRow('txt','txt_i','txt_c');" type="button" value="-" class="but_2"/>
         </td>
	     <td width="10%">
		     <select id='txt_1_sel' name='txt_1_sel'>
	             <option value='maganame' selected=''>题名</option>
	             <option value='themewords'>主题词</option>
	             <option value='keywords'>关键词</option>
	             <option value='abstract'>摘要</option>
	             <option value='author'>作者</option>
	             <option value='authorunit'>第一作者单位</option>
	             <option value='periodicalname'>刊名</option>
	             <option value='fundtype'>资助类别</option>
	         </select>
	     </td>
	      <td width="65%" >
	     	<input name="txt_1_value" id="txt_1_value" type="text" value="" style="width:99%" class="sear_input"/>
	     </td>
	      <td width="10%">
		     <select id="txt_1_special" name="txt_1_special" style="width:95%">
			     <option value=0 selected>精确</option>
			     <option value=1>模糊</option>
		     </select>
	     </td>
	     </tr>
	   
	    </table>
	    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="deta_list_sear"> 
	     <tr> 
	     <td width="30%" align=center>&nbsp;</td>
	     <td width="10%" align=center><input   type="button" onclick="generalSearch('');" value="检索" class="butt2"/></td>
	     <td width="10%" align=center><input   type="button" onclick="secondSearch('');" value="二次检索" disabled="disabled" id="secondsearch" class="butt2"/></td>
	     <td width="10%"><input type="button" value="重置" onclick="resetAll();" class="butt4"/></td>
	     <td width="30%" align=center>&nbsp;</td>
	     </tr>  
     </table>  
	</div>
	<div id=specialsearch style="display:<%if("2".equals(searchtype)){ out.println("");}else{out.println("none");} %>">
  	     <table id="spec" width="100%" border="0" cellspacing="0" cellpadding="0" class="deta_list_sear">
  	      
  	     <tr id="date_sep_1">
	     <td colspan=5 align=center>
	     	<table >
	     		<tr>
	     			<td width="10%">出版日期：</td>
				    <td width="40%"><input type="text" class="Wdate" id="startyear_s" value="" style="width:90%;vertical-align:middle" name="startyear_s"  onFocus="WdatePicker({el:'startyear_s',dateFmt:'yyyy'})"  />&nbsp;</td>
				    <td width="10%">至</td> 
				    <td width="40%"><input type="text" class="Wdate" id="endyear_s" value="" style="width:90%;vertical-align:middle" name="endyear_s"  onFocus="WdatePicker({el:'endyear_s',dateFmt:'yyyy'})"  /></td>
	     		</tr>
	     	</table>
	     </td>
	     </tr>
	     <tr id="method_1">
	     	<td colspan=5>
	     	<table >
		     	<tr>
			     	 <td width="16%"><input type=checkbox value="1" name="istangyao" id="istangyao" />&nbsp;汤药治疗</td>
				     <td width="16%"><input type=checkbox value="1" name="iszhongy" id="iszhongy" />&nbsp;中成药治疗</td>
				     <td width="16%"><input type=checkbox value="1" name="iswest" id="iswest" />&nbsp;西医治疗</td>
				     <td width="16%"><input type=checkbox value="1" name="iszhenjiu" id="iszhenjiu" />&nbsp;针灸治疗</td>
				     <td width="16%"><input type=checkbox value="1" name="istuina" id="istuina" />&nbsp;推拿治疗 </td>
				     <td width="16%"><input type=checkbox value="1" name="isshoushu" id="isshoushu" />&nbsp;手术治疗</td>
		     	</tr>
	     	</table>
	      </td>
	     </tr>
 	    	<input id="spec_i" value="1" type="hidden" name="spec_i"></input>
            <input id="spec_c" value="8" type="hidden" name="spec_c"></input>
            <tr id="hidden_logical_spec" style="display:none">
                <td nowrap style="width:10%;" align="right" >
                    <select id="{key}_logical" name="{key}_logical">
                        <option value="0" selected="">并且</option>
                        <option value="1">或者</option>
                    </select> 
                </td>
         </tr>
	     <tr id="spec_1">
	     <td nowrap width="10%">
	    			<input onclick="AddRowEx('spec','spec_i','spec_c');" type="button" value="+" class="but_2"/>
	    			<input onclick="DeleteRow('spec','spec_i','spec_c');" type="button" value="-" class="but_2"/>
         </td>
	     <td width="15%">
		     <select id='spec_1_sel' name='spec_1_sel' style="width:99%">
	             <option value='maganame' selected=''>题名</option>
	             <option value='themewords'>主题词</option>
	             <option value='keywords'>关键词</option>
	             <option value='abstract'>摘要</option>
	             <option value='author'>作者</option>
	             <option value='authorunit'>第一作者单位</option>
	             <option value='periodicalname'>刊名</option>
	             <option value='fundtype'>资助类别</option>
	         </select>
	     </td>
	      <td width="55%" >
	     	<input name="spec_1_value" id="spec_1_value" type="text" value="" style="width:99%" class="sear_input"/>
	     </td>
	      <td width="10%">
		     <select id="spec_1_special" name="spec_1_special" style="width:100%">
			     <option value=0 >精确</option>
			     <option value=1 selected>模糊</option>
		     </select>
	     </td>
	     </tr>
	    </table>
	    <table id="pro" width="100%" border="0" cellspacing="0" cellpadding="0" class="deta_list_sear">
 	     
 	    	<input id="pro_i" value="1" type="hidden" name="pro_i"></input>
            <input id="pro_c" value="8" type="hidden" name="pro_c"></input>
            <tr id="hidden_logical_pro" style="display:none">
                <td nowrap="true" style="width:10%;" align="right" >
                    <select id="{key}_logical" name="{key}_logical" style="width:100%">
                        <option value="0" selected="">并且</option>
                        <option value="1">或者</option>
                    </select> 
                </td>
         </tr>
	     <tr id="pro_1">
	     <td nowrap width="10%">
	    			<input onclick="AddRowEx('pro','pro_i','pro_c');" type="button" value="+" class="but_2"/>
	    			<input onclick="DeleteRow('pro','pro_i','pro_c');" type="button" value="-" class="but_2"/>
         </td>
	     <td width="15%">
		     <select id='pro_1_sel' name='pro_1_sel' style="width:100%">
	             <option value='diseasename' selected=''>中医疾病名称</option>
	             <option value='diseasenamen'>西医疾病名称</option>
	             <option value='paradisname'>并发病名</option>
	             <option value='symptomname'>证候</option>
	             <option value='prename'>方剂</option>
	             <option value='herbname'>中药</option>
	             <option value='pgroupname'>穴位组</option>
	             <option value='pointname'>穴位</option>
	         </select>
	     </td>
	      <td width="56%" >
	     	<input name="pro_1_value" id="pro_1_value" type="text" value="" style="width:99%" class="sear_input"/>
	     </td>
	      <td width="10%">
		     <select id="pro_1_special" name="pro_1_special" style="width:100%">
			     <option value=0  >精确</option>
			     <option value=1 selected>模糊</option>
		     </select>
	     </td>
	      <td width="10%">
		     <select id="pro_1_syn" name="pro_1_syn" style="width:100%">
		         <option value=2 selected>全部</option>
			     <option value=0  >正名查询</option>
			     <option value=1 >异名查询</option>
		     </select>
	     </td>
	     </tr>
	     
	    </table>
	    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="deta_list_sear"> 
	     <tr> 
		     <td width="30%" align=center>&nbsp;</td>
		     <td width="10%" align=center><input type="button"  onclick="specialSearch('');" value="检索" class="butt2"/></td>
		     <td width="10%"><input type="button" value="重置" onclick="resetAll();" class="butt4"/></td>
		     <td width="30%" align=center>&nbsp;</td>
	     </tr>  
     </table> 
 	</div>
   </form>
  </div>  
      <iframe src="<%=basePath%>search/sindex3.do" width="100%" frameborder="0" height="100%" id="bookframe" name="bookframe"  ></iframe>
   </div>
	 </td>
	 </tr>  
</table>
</div>
</body>
</html>
<script language=javascript>
var MS = "IE";
if(navigator.userAgent.indexOf("Firefox") > 0) {
    MS = "FF";
}
if (document.getElementById("bookframe")!=null) {   
     if (document.documentElement.clientHeight > 200) {
        document.getElementById("bookframe").style.height = document.documentElement.clientHeight - 150 + "px";
     }
}

 

</script>


